﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ex5.PriorityQueue
{
    class PriorityQueueTest
    {
        public static void Main(string[] args)
        {
            PriorityQueue<int> myQueue = new PriorityQueue<int>();
            myQueue.Enqueue(8);
            myQueue.Enqueue(2);
            myQueue.Enqueue(4);
            foreach (var item in myQueue)
            {
                Console.WriteLine(item);
            }
            Console.WriteLine();
            Console.WriteLine(myQueue[1]);
        }
    }
}
